From: Giovanni Campagna Date: Thu, 13 Feb 2014 16:24:46 +0000 (+0100) Subject: Magnifier: use the system noise texture for the dead area X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2797 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f8f4d0f64650dbf63a85678087c1ceb76fb9d484;p=gnome-shell.git Magnifier: use the system noise texture for the dead area The design says that the noise texture is the implicit bottom layer, and so it's appropriate to use it togheter with the default color to cover the dead area outside the screen which becomes visibile when scrolling. https://bugzilla.gnome.org/show_bug.cgi?id=724305 --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index f64ac3b99..5cc001ea9 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -11,6 +11,7 @@ const Mainloop = imports.mainloop; const Meta = imports.gi.Meta; const Signals = imports.signals; +const Background = imports.ui.background; const FocusCaretTracker = imports.ui.focusCaretTracker; const Main = imports.ui.main; const MagnifierDBus = imports.ui.magnifierDBus; @@ -1198,8 +1199,11 @@ const ZoomRegion = new Lang.Class({ // Add a background for when the magnified uiGroup is scrolled // out of view (don't want to see desktop showing through). this._background = new Clutter.Actor({ background_color: Main.DEFAULT_BACKGROUND_COLOR, + layout_manager: new Clutter.BinLayout(), width: global.screen_width, height: global.screen_height }); + let noiseTexture = (new Background.SystemBackground()).actor; + this._background.add_actor(noiseTexture); mainGroup.add_actor(this._background); // Clone the group that contains all of UI on the screen. This is the